define(['config'],()=>{
    require(['jquery'],()=>{
        class Floater{
            constructor(){
                this.loadHtml()
            }
            loadHtml(){
                $('#floater').load('/html/includes/floater.html',()=>{
                    $('.cart').on('click',()=>{
                        location.href='/html/cart.html'
                    })
                    $('.goTop').on('click',()=>{
                        $('html').animate({
                            scrollTop: 0
                        }, 500)
                    })
                })
            }
        }
        return new Floater()
    })
})